using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;

namespace Janus.NorthwindDemo2007
{
	public partial class ContentViewControl
	{

		private DataProvider mDataProvider;
		private FolderView mFolderView;
		public FolderView FolderView
		{
			get
			{
				return mFolderView;
			}
			set
			{
				if (mFolderView != value)
				{
					mFolderView = value;
					OnFolderViewChanged();
				}
			}
		}

		public DataProvider DataProvider
		{
			get
			{
				return mDataProvider;
			}
			set
			{
				if (mDataProvider != value)
				{
					mDataProvider = value;
					this.OnDataProviderChanged();
				}
			}
		}
		protected virtual void OnDataProviderChanged()
		{

		}
		public virtual void SaveSettings()
		{

		}
		public virtual void LoadSettings()
		{

		}
		public virtual string StatusBarInfo
		{
			get
			{
				return "";
			}
		}
		public virtual bool UpdateChanges()
		{
			return true;
		}
		public NorthwindData DataSource
		{
			get
			{
				if (mDataProvider != null)
				{
					return mDataProvider.DataSet;
				}
				else
				{
					return null;
				}
			}
		}
		protected virtual void OnFolderViewChanged()
		{

		}
		public virtual FolderView[] GetDefinedViews()
		{
			return null;
		}

		public virtual int ItemCount
		{
			get
			{
				return -1;
			}
		}
		public virtual bool Printable
		{
			get
			{
				return false;
			}
		}
		public virtual void PrintPreview(Form ownerForm)
		{

		}

		public virtual void Print()
		{

		}

		public event EventHandler CurrentItemChanged;
		protected virtual void OnCurrentItemChanged(EventArgs e)
		{
			if (CurrentItemChanged != null)
				CurrentItemChanged(this, e);
		}
		public virtual object CurrentItem
		{
			get
			{
				return null;
			}
		}
		public virtual bool CanDelete
		{
			get
			{
				return false;
			}
		}
		public virtual bool CanEdit
		{
			get
			{
				return false;
			}
		}


		public virtual void Delete()
		{

		}
		public virtual void Edit()
		{

		}
		public virtual Janus.Windows.UI.CommandBars.UICommandManager ControlCommandManager
		{
			get
			{
				return null;
			}
		}
        public virtual Janus.Windows.Ribbon.Ribbon RibbonControl
        {
            get
            {
                return null;
            }
        }
	}

} //end of root namespace